const express=require('express')
const {getUserInfo,updateUser,updatePwd}=require('../routerHandler/userinfo')
const userinfoRouter=express.Router()
const {regupdate,regupdatePws}=require('../utils/index')
const expressJoi = require('@escook/express-joi')

userinfoRouter.post('/getUserInfo',getUserInfo)
userinfoRouter.post('/updateUser',expressJoi(regupdate),updateUser)
userinfoRouter.post('/updatePassword',expressJoi(regupdatePws),updatePwd)
module.exports=userinfoRouter